package com.xyht.sca_s.student_manage_system.modules.goods.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 物品库存日记表(--迎新)
 * </p>
 *
 * @author XYHT
 * @since 2024-01-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_goods_stock_log")
@ApiModel(value="SmsGoodsStockLog对象", description="物品库存日记表(--迎新)")
public class SmsGoodsStockLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "物品库存日志id")
    private String id;

    @ApiModelProperty(value = "物品id")
    private String goodsId;

    @ApiModelProperty(value = "物品分类id")
    private String classificationId;

    @ApiModelProperty(value = "物品信息")
    private String goodsInfo;

    @ApiModelProperty(value = "库存类型[0:入库 1:出库]")
    private Integer stockType;

    @ApiModelProperty(value = "出库数")
    private Integer outQuantity;

    @ApiModelProperty(value = "入库数量")
    private Integer inQuantity;

    @ApiModelProperty(value = "创建人")
    private String userId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField (fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除[0:未删除 1:删除]")
    @TableLogic
    private Integer isDeleted;


}
